home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / dlamch.z / dlamch
Encoding:
Text File  |  2002-10-03  |  3.0 KB  |  133 lines

  1.  
  2.  
  3.  
  4. DDDDLLLLAAAAMMMMCCCCHHHH((((3333SSSS))))                                                          DDDDLLLLAAAAMMMMCCCCHHHH((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      DLAMCH - determine double precision machine parameters
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      DOUBLE PRECISION FUNCTION DLAMCH( CMACH )
  13.  
  14.          CHARACTER    CMACH
  15.  
  16. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  17.      These routines are part of the SCSL Scientific Library and can be loaded
  18.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  19.      directs the linker to use the multi-processor version of the library.
  20.  
  21.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  22.      4 bytes (32 bits). Another version of SCSL is available in which integers
  23.      are 8 bytes (64 bits).  This version allows the user access to larger
  24.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  25.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  26.      only one of the two versions; 4-byte integer and 8-byte integer library
  27.      calls cannot be mixed.
  28.  
  29. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  30.      DLAMCH determines double precision machine parameters.
  31.  
  32. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  33.      CMACH   (input) CHARACTER*1
  34.              Specifies the value to be returned by DLAMCH:
  35.              = 'E' or 'e',   DLAMCH := eps
  36.              = 'S' or 's ,   DLAMCH := sfmin
  37.              = 'B' or 'b',   DLAMCH := base
  38.              = 'P' or 'p',   DLAMCH := eps*base
  39.              = 'N' or 'n',   DLAMCH := t
  40.              = 'R' or 'r',   DLAMCH := rnd
  41.              = 'M' or 'm',   DLAMCH := emin
  42.              = 'U' or 'u',   DLAMCH := rmin
  43.              = 'L' or 'l',   DLAMCH := emax
  44.              = 'O' or 'o',   DLAMCH := rmax
  45.  
  46.              where
  47.  
  48.      eps   = relative machine precision
  49.            sfmin = safe minimum, such that 1/sfmin does not overflow base  =
  50.            base of the machine prec  = eps*base t     = number of (base)
  51.            digits in the mantissa rnd   = 1.0 when rounding occurs in
  52.            addition, 0.0 otherwise emin  = minimum exponent before (gradual)
  53.            underflow rmin  = underflow threshold - base**(emin-1) emax  =
  54.            largest exponent before overflow rmax  = overflow threshold  -
  55.            (base**emax)*(1-eps)
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. DDDDLLLLAAAAMMMMCCCCHHHH((((3333SSSS))))                                                          DDDDLLLLAAAAMMMMCCCCHHHH((((3333SSSS))))
  71.  
  72.  
  73.  
  74. SEE ALSO
  75.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  76.  
  77.      This man page is available only online.
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.